.class public Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private a:Landroid/widget/ImageView;

.field private b:Landroid/widget/TextView;

.field private c:Landroid/widget/TextView;

.field private d:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

.field private e:Landroid/widget/LinearLayout;

.field private f:Landroid/widget/LinearLayout;

.field private g:Landroid/os/Handler;

.field private h:Ljava/util/ArrayList;

.field private i:Lcom/waiqin365/lightapp/visit/b/ah;

.field private j:Ljava/lang/String;

.field private k:Landroid/content/Context;

.field private l:Landroid/widget/ImageView;

.field private m:Landroid/widget/Button;

.field private n:Landroid/widget/Button;

.field private o:Ljava/lang/String;

.field private p:Landroid/widget/TextView;

.field private q:Lcom/waiqin365/lightapp/view/NoNetView;

.field private r:Lcom/waiqin365/compons/view/c;

.field private s:Lcom/waiqin365/lightapp/visit/b/bd;


# direct methods
.method public constructor <init>()V
    .locals 2

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v0

    const v1, 0x7f080655

    invoke-virtual {v0, v1}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->getString(I)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->o:Ljava/lang/String;

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->s:Lcom/waiqin365/lightapp/visit/b/bd;

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;Ljava/util/ArrayList;)Ljava/util/ArrayList;
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->h:Ljava/util/ArrayList;

    return-object p1
.end method

.method private a()V
    .locals 1

    new-instance v0, Lcom/waiqin365/lightapp/visit/cc;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/visit/cc;-><init>(Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->g:Landroid/os/Handler;

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;)V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->c()V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;Lcom/waiqin365/lightapp/visit/b/bd;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->a(Lcom/waiqin365/lightapp/visit/b/bd;)V

    return-void
.end method

.method private a(Lcom/waiqin365/lightapp/visit/b/bd;)V
    .locals 3

    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->k:Landroid/content/Context;

    const-class v2, Lcom/waiqin365/lightapp/visit/SeniorVisitProcessSelectActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    iget-object v1, p1, Lcom/waiqin365/lightapp/visit/b/bd;->O:Lcom/waiqin365/lightapp/kehu/b/am;

    if-eqz v1, :cond_0

    iget-object v1, p1, Lcom/waiqin365/lightapp/visit/b/bd;->O:Lcom/waiqin365/lightapp/kehu/b/am;

    iget-object v1, v1, Lcom/waiqin365/lightapp/kehu/b/am;->a:Ljava/lang/String;

    if-eqz v1, :cond_0

    iget-object v1, p1, Lcom/waiqin365/lightapp/visit/b/bd;->O:Lcom/waiqin365/lightapp/kehu/b/am;

    iget-object v1, v1, Lcom/waiqin365/lightapp/kehu/b/am;->d:Ljava/lang/String;

    if-eqz v1, :cond_0

    iget-object v1, p1, Lcom/waiqin365/lightapp/visit/b/bd;->O:Lcom/waiqin365/lightapp/kehu/b/am;

    iget-object v1, v1, Lcom/waiqin365/lightapp/kehu/b/am;->b:Ljava/lang/String;

    if-eqz v1, :cond_0

    iget-object v1, p1, Lcom/waiqin365/lightapp/visit/b/bd;->O:Lcom/waiqin365/lightapp/kehu/b/am;

    iget-object v1, v1, Lcom/waiqin365/lightapp/kehu/b/am;->i:Ljava/lang/String;

    if-nez v1, :cond_1

    :cond_0
    new-instance v1, Lcom/waiqin365/lightapp/kehu/b/am;

    invoke-direct {v1}, Lcom/waiqin365/lightapp/kehu/b/am;-><init>()V

    iget-object v2, p1, Lcom/waiqin365/lightapp/visit/b/bd;->k:Ljava/lang/String;

    iput-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/am;->a:Ljava/lang/String;

    iget-object v2, p1, Lcom/waiqin365/lightapp/visit/b/bd;->l:Ljava/lang/String;

    iput-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/am;->d:Ljava/lang/String;

    iget-object v2, p1, Lcom/waiqin365/lightapp/visit/b/bd;->q:Ljava/lang/String;

    iput-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/am;->b:Ljava/lang/String;

    iget-object v2, p1, Lcom/waiqin365/lightapp/visit/b/bd;->o:Ljava/lang/String;

    iput-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/am;->i:Ljava/lang/String;

    iput-object v1, p1, Lcom/waiqin365/lightapp/visit/b/bd;->O:Lcom/waiqin365/lightapp/kehu/b/am;

    :cond_1
    const-string/jumbo v1, "customerInfo"

    iget-object v2, p1, Lcom/waiqin365/lightapp/visit/b/bd;->O:Lcom/waiqin365/lightapp/kehu/b/am;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    const-string/jumbo v1, "visitId"

    iget-object v2, p1, Lcom/waiqin365/lightapp/visit/b/bd;->a:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "visitStatus"

    iget-object v2, p1, Lcom/waiqin365/lightapp/visit/b/bd;->m:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "1"

    iget-object v2, p1, Lcom/waiqin365/lightapp/visit/b/bd;->m:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    const-string/jumbo v1, "from"

    const-string/jumbo v2, "visitRecordDetail"

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    :cond_2
    const-string/jumbo v1, "isFinished"

    iget-object v2, p1, Lcom/waiqin365/lightapp/visit/b/bd;->Q:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "visitor"

    iget-object v2, p1, Lcom/waiqin365/lightapp/visit/b/bd;->g:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "visitType"

    iget-object v2, p1, Lcom/waiqin365/lightapp/visit/b/bd;->n:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const/16 v1, 0x66

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->startActivityForResult(Landroid/content/Intent;I)V

    const v0, 0x7f040022

    const v1, 0x7f040021

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->overridePendingTransition(II)V

    return-void
.end method

.method private a(Ljava/util/ArrayList;)V
    .locals 14

    const/4 v13, 0x3

    const/4 v12, 0x2

    const/4 v11, 0x1

    const/4 v2, 0x0

    if-eqz p1, :cond_5

    invoke-virtual {p1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v8

    move v1, v2

    move v3, v2

    move v4, v2

    move v5, v2

    move v6, v2

    move v7, v2

    :goto_0
    invoke-interface {v8}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_4

    invoke-interface {v8}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/visit/b/bd;

    const-string/jumbo v9, "1"

    iget-object v10, v0, Lcom/waiqin365/lightapp/visit/b/bd;->n:Ljava/lang/String;

    invoke-virtual {v9, v10}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v9

    if-eqz v9, :cond_3

    add-int/lit8 v7, v7, 0x1

    const-string/jumbo v9, "1"

    iget-object v10, v0, Lcom/waiqin365/lightapp/visit/b/bd;->m:Ljava/lang/String;

    invoke-virtual {v9, v10}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v9

    if-eqz v9, :cond_1

    const-string/jumbo v9, "1"

    iget-object v0, v0, Lcom/waiqin365/lightapp/visit/b/bd;->Q:Ljava/lang/String;

    invoke-virtual {v9, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    add-int/lit8 v6, v6, 0x1

    move v0, v1

    move v1, v3

    move v3, v4

    move v4, v5

    move v5, v6

    move v6, v7

    :goto_1
    move v7, v6

    move v6, v5

    move v5, v4

    move v4, v3

    move v3, v1

    move v1, v0

    goto :goto_0

    :cond_0
    add-int/lit8 v5, v5, 0x1

    move v0, v1

    move v1, v3

    move v3, v4

    move v4, v5

    move v5, v6

    move v6, v7

    goto :goto_1

    :cond_1
    const-string/jumbo v9, "2"

    iget-object v10, v0, Lcom/waiqin365/lightapp/visit/b/bd;->m:Ljava/lang/String;

    invoke-virtual {v9, v10}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v9

    if-eqz v9, :cond_2

    add-int/lit8 v4, v4, 0x1

    move v0, v1

    move v1, v3

    move v3, v4

    move v4, v5

    move v5, v6

    move v6, v7

    goto :goto_1

    :cond_2
    const-string/jumbo v9, "0"

    iget-object v0, v0, Lcom/waiqin365/lightapp/visit/b/bd;->m:Ljava/lang/String;

    invoke-virtual {v9, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_6

    add-int/lit8 v3, v3, 0x1

    move v0, v1

    move v1, v3

    move v3, v4

    move v4, v5

    move v5, v6

    move v6, v7

    goto :goto_1

    :cond_3
    const-string/jumbo v9, "2"

    iget-object v0, v0, Lcom/waiqin365/lightapp/visit/b/bd;->n:Ljava/lang/String;

    invoke-virtual {v9, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_6

    add-int/lit8 v1, v1, 0x1

    move v0, v1

    move v1, v3

    move v3, v4

    move v4, v5

    move v5, v6

    move v6, v7

    goto :goto_1

    :cond_4
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->p:Landroid/widget/TextView;

    iget-object v3, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->o:Ljava/lang/String;

    new-array v4, v13, [Ljava/lang/Object;

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v5, v7}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string/jumbo v7, ""

    invoke-virtual {v5, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    aput-object v5, v4, v2

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, v6}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string/jumbo v5, ""

    invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    aput-object v2, v4, v11

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    aput-object v1, v4, v12

    invoke-static {v3, v4}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_2
    return-void

    :cond_5
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->p:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->o:Ljava/lang/String;

    new-array v3, v13, [Ljava/lang/Object;

    const-string/jumbo v4, "0"

    aput-object v4, v3, v2

    const-string/jumbo v2, "0"

    aput-object v2, v3, v11

    const-string/jumbo v2, "0"

    aput-object v2, v3, v12

    invoke-static {v1, v3}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_2

    :cond_6
    move v0, v1

    move v1, v3

    move v3, v4

    move v4, v5

    move v5, v6

    move v6, v7

    goto/16 :goto_1
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;)Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->h:Ljava/util/ArrayList;

    return-object v0
.end method

.method private b()V
    .locals 4

    const/16 v3, 0x1a

    const v0, 0x7f0c0c4f

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->a:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->a:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c0c51

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->b:Landroid/widget/TextView;

    const v0, 0x7f0c0c5a

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->m:Landroid/widget/Button;

    const v0, 0x7f0c0cb2

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->l:Landroid/widget/ImageView;

    const v0, 0x7f0c0cb8

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->n:Landroid/widget/Button;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->m:Landroid/widget/Button;

    invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->l:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->n:Landroid/widget/Button;

    invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "title"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->b:Landroid/widget/TextView;

    const v1, 0x7f080850

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    :goto_0
    const v0, 0x7f0c0c52

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->c:Landroid/widget/TextView;

    const v0, 0x7f0c0c58

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->c:Landroid/widget/TextView;

    invoke-virtual {v1, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->c:Landroid/widget/TextView;

    const v2, 0x7f080851

    invoke-virtual {p0, v2}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->c:Landroid/widget/TextView;

    invoke-static {v3, v3, v3}, Landroid/graphics/Color;->rgb(III)I

    move-result v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setTextColor(I)V

    const v1, 0x7f0804dc

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    const v0, 0x7f0c0c56

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->d:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->d:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->f()V

    const v0, 0x7f0c0c54

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->f:Landroid/widget/LinearLayout;

    const v0, 0x7f0c0c57

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->e:Landroid/widget/LinearLayout;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->f:Landroid/widget/LinearLayout;

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    const v0, 0x7f0c00cb

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/view/NoNetView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->q:Lcom/waiqin365/lightapp/view/NoNetView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->q:Lcom/waiqin365/lightapp/view/NoNetView;

    iget-object v0, v0, Lcom/waiqin365/lightapp/view/NoNetView;->b:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c0cb4

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->p:Landroid/widget/TextView;

    new-instance v0, Lcom/waiqin365/lightapp/visit/b/ah;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->h:Ljava/util/ArrayList;

    invoke-direct {v0, p0, v1}, Lcom/waiqin365/lightapp/visit/b/ah;-><init>(Landroid/content/Context;Ljava/util/ArrayList;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->i:Lcom/waiqin365/lightapp/visit/b/ah;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->d:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->i:Lcom/waiqin365/lightapp/visit/b/ah;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setAdapter(Landroid/widget/BaseAdapter;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->i:Lcom/waiqin365/lightapp/visit/b/ah;

    new-instance v1, Lcom/waiqin365/lightapp/visit/cd;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/visit/cd;-><init>(Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/visit/b/ah;->b(Lcom/waiqin365/lightapp/visit/b/al;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->i:Lcom/waiqin365/lightapp/visit/b/ah;

    new-instance v1, Lcom/waiqin365/lightapp/visit/ce;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/visit/ce;-><init>(Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/visit/b/ah;->c(Lcom/waiqin365/lightapp/visit/b/al;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->i:Lcom/waiqin365/lightapp/visit/b/ah;

    new-instance v1, Lcom/waiqin365/lightapp/visit/cf;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/visit/cf;-><init>(Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/visit/b/ah;->a(Lcom/waiqin365/lightapp/visit/b/am;)V

    return-void

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->b:Landroid/widget/TextView;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    const-string/jumbo v2, "title"

    invoke-virtual {v1, v2}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_0
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;Ljava/util/ArrayList;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->a(Ljava/util/ArrayList;)V

    return-void
.end method

.method static synthetic c(Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;)Landroid/content/Context;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->k:Landroid/content/Context;

    return-object v0
.end method

.method private c()V
    .locals 3

    new-instance v0, Lcom/waiqin365/lightapp/visit/a/a/p;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->j:Ljava/lang/String;

    const-string/jumbo v2, "1"

    invoke-direct {v0, v1, v2}, Lcom/waiqin365/lightapp/visit/a/a/p;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    new-instance v1, Lcom/waiqin365/lightapp/visit/a/b;

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->g:Landroid/os/Handler;

    invoke-direct {v1, v2, v0}, Lcom/waiqin365/lightapp/visit/a/b;-><init>(Landroid/os/Handler;Lcom/waiqin365/lightapp/visit/a/c;)V

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/visit/a/b;->start()V

    return-void
.end method

.method static synthetic d(Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;)Lcom/waiqin365/lightapp/visit/b/ah;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->i:Lcom/waiqin365/lightapp/visit/b/ah;

    return-object v0
.end method

.method private d()V
    .locals 4

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->e()Z

    move-result v0

    if-nez v0, :cond_0

    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->k:Landroid/content/Context;

    const-class v2, Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    new-instance v1, Lcom/waiqin365/lightapp/kehu/b/cc;

    invoke-direct {v1}, Lcom/waiqin365/lightapp/kehu/b/cc;-><init>()V

    const-class v2, Lcom/waiqin365/lightapp/visit/SeniorVisitProcessSelectActivity;

    invoke-virtual {v2}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v2

    iput-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/cc;->f:Ljava/lang/String;

    const-string/jumbo v2, "from_senior_visit"

    iput-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/cc;->i:Ljava/lang/String;

    const/4 v2, 0x1

    iput-boolean v2, v1, Lcom/waiqin365/lightapp/kehu/b/cc;->l:Z

    new-instance v2, Landroid/os/Bundle;

    invoke-direct {v2}, Landroid/os/Bundle;-><init>()V

    const-string/jumbo v3, "param"

    invoke-virtual {v2, v3, v1}, Landroid/os/Bundle;->putSerializable(Ljava/lang/String;Ljava/io/Serializable;)V

    invoke-virtual {v0, v2}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;

    const/16 v1, 0xce

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->startActivityForResult(Landroid/content/Intent;I)V

    const v0, 0x7f040022

    const v1, 0x7f040021

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->overridePendingTransition(II)V

    :cond_0
    return-void
.end method

.method static synthetic e(Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;)Landroid/widget/LinearLayout;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->e:Landroid/widget/LinearLayout;

    return-object v0
.end method

.method private e()Z
    .locals 7

    const/4 v6, 0x1

    const/4 v2, 0x0

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->k:Landroid/content/Context;

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/login/mainview/a;->b(Landroid/content/Context;)Ljava/util/HashMap;

    move-result-object v0

    const-string/jumbo v1, "senorvisit"

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/HashMap;

    if-eqz v0, :cond_2

    const-string/jumbo v1, "0"

    const-string/jumbo v3, "visit_can_visit_many"

    invoke-virtual {v0, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    move v1, v2

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->h:Ljava/util/ArrayList;

    if-eqz v0, :cond_5

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->h:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ge v1, v0, :cond_5

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->h:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/visit/b/bd;

    const-string/jumbo v3, "1"

    iget-object v4, v0, Lcom/waiqin365/lightapp/visit/b/bd;->n:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_3

    const-string/jumbo v3, "1"

    iget-object v4, v0, Lcom/waiqin365/lightapp/visit/b/bd;->m:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_4

    const-string/jumbo v3, "1"

    iget-object v4, v0, Lcom/waiqin365/lightapp/visit/b/bd;->Q:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_4

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->s:Lcom/waiqin365/lightapp/visit/b/bd;

    :goto_1
    if-eqz v6, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->r:Lcom/waiqin365/compons/view/c;

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->k:Landroid/content/Context;

    const v1, 0x7f080067

    invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v3

    new-instance v0, Lcom/waiqin365/compons/view/c;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->k:Landroid/content/Context;

    const-string/jumbo v2, ""

    sget v4, Lcom/waiqin365/compons/view/c;->b:I

    new-instance v5, Lcom/waiqin365/lightapp/visit/cg;

    invoke-direct {v5, p0}, Lcom/waiqin365/lightapp/visit/cg;-><init>(Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;)V

    invoke-direct/range {v0 .. v5}, Lcom/waiqin365/compons/view/c;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;ILcom/waiqin365/compons/view/d;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->r:Lcom/waiqin365/compons/view/c;

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->r:Lcom/waiqin365/compons/view/c;

    invoke-virtual {v0}, Lcom/waiqin365/compons/view/c;->show()V

    :cond_1
    move v2, v6

    :cond_2
    return v2

    :cond_3
    const-string/jumbo v3, "2"

    iget-object v4, v0, Lcom/waiqin365/lightapp/visit/b/bd;->n:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_4

    const-string/jumbo v3, "1"

    iget-object v4, v0, Lcom/waiqin365/lightapp/visit/b/bd;->Q:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_4

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->s:Lcom/waiqin365/lightapp/visit/b/bd;

    goto :goto_1

    :cond_4
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0

    :cond_5
    move v6, v2

    goto :goto_1
.end method

.method static synthetic f(Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;)Landroid/widget/LinearLayout;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->f:Landroid/widget/LinearLayout;

    return-object v0
.end method

.method static synthetic g(Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;)Lcom/waiqin365/lightapp/view/NoNetView;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->q:Lcom/waiqin365/lightapp/view/NoNetView;

    return-object v0
.end method

.method static synthetic h(Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;)Z
    .locals 1

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->e()Z

    move-result v0

    return v0
.end method

.method static synthetic i(Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->d:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    return-object v0
.end method

.method static synthetic j(Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;)Lcom/waiqin365/lightapp/visit/b/bd;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->s:Lcom/waiqin365/lightapp/visit/b/bd;

    return-object v0
.end method


# virtual methods
.method public back()V
    .locals 2

    const/4 v0, -0x1

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->setResult(I)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->finish()V

    const v0, 0x7f040020

    const v1, 0x7f040023

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->overridePendingTransition(II)V

    return-void
.end method

.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 3

    const/4 v2, 0x0

    const v1, 0x7f08056c

    invoke-super {p0, p1, p2, p3}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onActivityResult(IILandroid/content/Intent;)V

    sparse-switch p1, :sswitch_data_0

    :cond_0
    :goto_0
    return-void

    :sswitch_0
    if-eqz p3, :cond_0

    const-string/jumbo v0, "isModify"

    invoke-virtual {p3, v0, v2}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->showProgressDialog(Ljava/lang/String;)V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->c()V

    goto :goto_0

    :sswitch_1
    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->showProgressDialog(Ljava/lang/String;)V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->c()V

    goto :goto_0

    :sswitch_2
    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->showProgressDialog(Ljava/lang/String;)V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->c()V

    goto :goto_0

    :sswitch_3
    if-eqz p3, :cond_0

    const-string/jumbo v0, "isModify"

    invoke-virtual {p3, v0, v2}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->showProgressDialog(Ljava/lang/String;)V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->c()V

    goto :goto_0

    :sswitch_4
    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->showProgressDialog(Ljava/lang/String;)V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->c()V

    goto :goto_0

    :sswitch_5
    if-eqz p3, :cond_0

    const-string/jumbo v0, "isModify"

    invoke-virtual {p3, v0, v2}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->showProgressDialog(Ljava/lang/String;)V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->c()V

    goto :goto_0

    :sswitch_data_0
    .sparse-switch
        0x66 -> :sswitch_1
        0xc9 -> :sswitch_0
        0xcb -> :sswitch_2
        0xcd -> :sswitch_3
        0xce -> :sswitch_4
        0xd1 -> :sswitch_5
    .end sparse-switch
.end method

.method public onClick(Landroid/view/View;)V
    .locals 8

    const/4 v2, 0x0

    const v7, 0x7f040022

    const v6, 0x7f040021

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    sparse-switch v0, :sswitch_data_0

    :goto_0
    return-void

    :sswitch_0
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->back()V

    goto :goto_0

    :sswitch_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->h:Ljava/util/ArrayList;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->h:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_0

    const-string/jumbo v0, "seniorVisit_hasPlan_addTemp_top"

    invoke-static {p0, v0}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    :goto_1
    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->d()V

    goto :goto_0

    :cond_0
    const-string/jumbo v0, "seniorVisit_noPlan_addTemp_top"

    invoke-static {p0, v0}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_1

    :sswitch_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->h:Ljava/util/ArrayList;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->h:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_1

    const-string/jumbo v0, "seniorVisit_hasPlan_planManager"

    invoke-static {p0, v0}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    :goto_2
    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->k:Landroid/content/Context;

    const-class v2, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const/16 v1, 0xcb

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->startActivityForResult(Landroid/content/Intent;I)V

    invoke-virtual {p0, v7, v6}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->overridePendingTransition(II)V

    goto :goto_0

    :cond_1
    const-string/jumbo v0, "seniorVisit_noPlan_planManager"

    invoke-static {p0, v0}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_2

    :sswitch_3
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->h:Ljava/util/ArrayList;

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->h:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_2

    const-string/jumbo v0, "seniorVisit_hasPlan_map"

    invoke-static {p0, v0}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    :cond_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->h:Ljava/util/ArrayList;

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->h:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-nez v0, :cond_4

    :cond_3
    const v0, 0x7f0805af

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, v0, v2}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto :goto_0

    :cond_4
    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    move v1, v2

    :goto_3
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->h:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ge v1, v0, :cond_6

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->h:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/visit/b/bd;

    iget-object v4, v0, Lcom/waiqin365/lightapp/visit/b/bd;->o:Ljava/lang/String;

    invoke-static {v4}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v4

    if-nez v4, :cond_5

    iget-object v4, v0, Lcom/waiqin365/lightapp/visit/b/bd;->o:Ljava/lang/String;

    const-string/jumbo v5, ","

    invoke-virtual {v4, v5}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v4

    if-eqz v4, :cond_5

    invoke-virtual {v3, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :cond_5
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_3

    :cond_6
    invoke-virtual {v3}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-nez v0, :cond_7

    const v0, 0x7f08057d

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, v0, v2}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto/16 :goto_0

    :cond_7
    new-instance v0, Lcom/waiqin365/lightapp/visit/ch;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/visit/ch;-><init>(Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;)V

    invoke-static {v3, v0}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V

    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->k:Landroid/content/Context;

    const-class v2, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanMapActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v1, "list"

    invoke-virtual {v0, v1, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    const-string/jumbo v1, "allList"

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->h:Ljava/util/ArrayList;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    const-string/jumbo v1, "draw_line_between_points"

    const/4 v2, 0x1

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const/16 v1, 0xd1

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->startActivityForResult(Landroid/content/Intent;I)V

    invoke-virtual {p0, v7, v6}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->overridePendingTransition(II)V

    goto/16 :goto_0

    :sswitch_4
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->h:Ljava/util/ArrayList;

    if-eqz v0, :cond_8

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->h:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_8

    const-string/jumbo v0, "seniorVisit_hasPlan_record"

    invoke-static {p0, v0}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    :goto_4
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->startActivity(Landroid/content/Intent;)V

    invoke-virtual {p0, v7, v6}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->overridePendingTransition(II)V

    goto/16 :goto_0

    :cond_8
    const-string/jumbo v0, "seniorVisit_noPlan_record"

    invoke-static {p0, v0}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_4

    :sswitch_5
    const-string/jumbo v0, "seniorVisit_noPlan_addPlan"

    invoke-static {p0, v0}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->k:Landroid/content/Context;

    const-class v2, Lcom/waiqin365/lightapp/visit/SeniorVisitNewPlanActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v1, "userId"

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v2

    invoke-virtual {v2, p0}, Lcom/waiqin365/base/login/mainview/a;->i(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "date"

    new-instance v2, Ljava/text/SimpleDateFormat;

    const-string/jumbo v3, "yyyy-MM-dd"

    sget-object v4, Ljava/util/Locale;->CHINA:Ljava/util/Locale;

    invoke-direct {v2, v3, v4}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;Ljava/util/Locale;)V

    new-instance v3, Ljava/util/Date;

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v4

    invoke-direct {v3, v4, v5}, Ljava/util/Date;-><init>(J)V

    invoke-virtual {v2, v3}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const/16 v1, 0xc9

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->startActivityForResult(Landroid/content/Intent;I)V

    invoke-virtual {p0, v7, v6}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->overridePendingTransition(II)V

    goto/16 :goto_0

    :sswitch_6
    const-string/jumbo v0, "seniorVisit_noPlan_addTemp"

    invoke-static {p0, v0}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->d()V

    goto/16 :goto_0

    :sswitch_7
    const v0, 0x7f08056c

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->showProgressDialog(Ljava/lang/String;)V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->c()V

    goto/16 :goto_0

    :sswitch_data_0
    .sparse-switch
        0x7f0c0c3d -> :sswitch_7
        0x7f0c0c4f -> :sswitch_0
        0x7f0c0c52 -> :sswitch_1
        0x7f0c0c58 -> :sswitch_6
        0x7f0c0c59 -> :sswitch_5
        0x7f0c0c5a -> :sswitch_2
        0x7f0c0cb2 -> :sswitch_3
        0x7f0c0cb8 -> :sswitch_4
    .end sparse-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 2

    const/4 v1, 0x0

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    iput-object p0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->k:Landroid/content/Context;

    invoke-static {p0}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/app/Activity;)V

    const v0, 0x7f03029c

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->setContentView(I)V

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/waiqin365/base/login/mainview/a;->p(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->j:Ljava/lang/String;

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->h:Ljava/util/ArrayList;

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->a()V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->b()V

    const v0, 0x7f08056c

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;->showProgressDialog(Ljava/lang/String;)V

    new-instance v0, Lcom/waiqin365/lightapp/visit/cb;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/visit/cb;-><init>(Lcom/waiqin365/lightapp/visit/SeniorVisitManagerActivity;)V

    invoke-static {p0, v1, v1, v0}, Lcom/waiqin365/lightapp/kehu/c/b;->a(Landroid/content/Context;ZZLcom/waiqin365/lightapp/kehu/c/l;)V

    return-void
.end method
